From: Isaku Yamahata Date: Wed, 22 Oct 2008 03:41:52 +0000 (+0900) Subject: [IA64]: update ia64 px info transfer corresponding to x86 px info update. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14064 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=0cab8d3033f73e991d8f175b34f480623b641ba2;p=xen.git [IA64]: update ia64 px info transfer corresponding to x86 px info update. update ia64 px info transfer corresponding to x86 px info update. Signed-off-by: Liu Jinsong --- diff --git a/xen/arch/ia64/xen/platform_hypercall.c b/xen/arch/ia64/xen/platform_hypercall.c index 69c6bd5af8..81acf4f6c3 100644 --- a/xen/arch/ia64/xen/platform_hypercall.c +++ b/xen/arch/ia64/xen/platform_hypercall.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -20,15 +21,6 @@ DEFINE_SPINLOCK(xenpf_lock); extern int set_px_pminfo(uint32_t cpu, struct xen_processor_performance *perf); extern long set_cx_pminfo(uint32_t cpu, struct xen_processor_power *power); -int xenpf_copy_px_states(struct processor_performance *pxpt, - struct xen_processor_performance *dom0_px_info) -{ - if (!pxpt || !dom0_px_info) - return -EINVAL; - return copy_from_guest(pxpt->states, dom0_px_info->states, - dom0_px_info->state_count); -} - long do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op) { long ret = 0; @@ -50,6 +42,11 @@ long do_platform_op(XEN_GUEST_HANDLE(xen_platform_op_t) u_xenpf_op) switch ( op->u.set_pminfo.type ) { case XEN_PM_PX: + if ( !(xen_processor_pmbits & XEN_PROCESSOR_PM_PX) ) + { + ret = -ENOSYS; + break; + } ret = set_px_pminfo(op->u.set_pminfo.id, &op->u.set_pminfo.perf); break;